home *** CD-ROM | disk | FTP | other *** search
/ Champak 128 / Vol 128 (Damaged).iso / games / fire_it_.swf / scripts / __Packages / #140.as < prev    next >
Encoding:
Text File  |  2011-03-26  |  1.9 KB  |  78 lines

  1. class ┬º#140┬º
  2. {
  3.    var ┬º#13┬º = new Array();
  4.    var ┬º#41┬º = 0;
  5.    var ┬º#124┬º = 0;
  6.    var ┬º#184┬º = true;
  7.    function ┬º#140┬º(l)
  8.    {
  9.       this["#41"] = 0;
  10.       this["#124"] = l;
  11.       var _loc3_ = 0;
  12.       while(_loc3_ < this["#124"])
  13.       {
  14.          this["#13"][_loc3_] = _root.attachMovie("#283","#283" + _loc3_,22 + _loc3_);
  15.          this["#13"][_loc3_]._visible = false;
  16.          _loc3_ = _loc3_ + 1;
  17.       }
  18.       this["#262"]();
  19.    }
  20.    function ┬º#45┬º()
  21.    {
  22.       var _loc2_ = 0;
  23.       while(_loc2_ < this["#13"].length)
  24.       {
  25.          this["#13"][_loc2_].unloadMovie();
  26.          _loc2_ = _loc2_ + 1;
  27.       }
  28.    }
  29.    function ┬º#262┬º()
  30.    {
  31.       var _loc2_ = 0;
  32.       while(_loc2_ < this["#13"].length)
  33.       {
  34.          this["#13"][_loc2_]._visible = false;
  35.          _loc2_ = _loc2_ + 1;
  36.       }
  37.       this["#184"] = true;
  38.    }
  39.    function ┬º#345┬º()
  40.    {
  41.       var _loc2_ = 0;
  42.       while(_loc2_ < this["#124"])
  43.       {
  44.          this["#13"][_loc2_]._visible = false;
  45.          _loc2_ = _loc2_ + 1;
  46.       }
  47.       this["#184"] = false;
  48.    }
  49.    function update(x, y, alpha)
  50.    {
  51.       if(this["#184"])
  52.       {
  53.          return undefined;
  54.       }
  55.       this["#13"][this["#41"]]._x = x;
  56.       this["#13"][this["#41"]]._y = y;
  57.       this["#13"][this["#41"]]._visible = true;
  58.       this["#13"][this["#41"]]._alpha = alpha * 0.4;
  59.       this["#13"][this["#41"]]._xscale = 100;
  60.       this["#13"][this["#41"]]._yscale = 100;
  61.       this["#13"][this["#41"]]._rotation = 2;
  62.       var _loc2_ = 0;
  63.       while(_loc2_ < this["#124"])
  64.       {
  65.          this["#13"][_loc2_]._alpha -= 4;
  66.          this["#13"][_loc2_]._xscale -= 4;
  67.          this["#13"][_loc2_]._yscale -= 4;
  68.          this["#13"][_loc2_]._rotation *= 2;
  69.          _loc2_ = _loc2_ + 1;
  70.       }
  71.       this["#41"] = this["#41"] + 1;
  72.       if(this["#41"] == this["#124"])
  73.       {
  74.          this["#41"] = 0;
  75.       }
  76.    }
  77. }
  78.